import ajax from '@/utils/request.js';


export function getNumber(data) {
	return ajax({
		url: '/mobile/instructor/center/header',
		method: 'GET',
		data
	})
}


// 证书列表
export function getCertList(type) {
	return ajax({
		url: '/mobile/instructor/center/certList/' + type,
		method: 'GET'
	})
}

// 提交证书
export function submissionCertificate(data) {
	return ajax({
		url: '/mobile/instructor/center/certSubmit',
		method: 'POST',
		data
	})
}

// 修改证书
export function modifyCertificate(data, id) {
	return ajax({
		url: '/mobile/instructor/center/certUpdate/' + id,
		method: 'POST',
		data
	})
}

// 获取设置信息
export function getSettingInfo(data) {
	return ajax({
		url: '/mobile/setting',
		method: 'GET',
		data
	})
}

// 一对一解答
export function getOneToOne(data) {
	return ajax({
		url: '/mobile/instructor/center/qaList',
		method: 'GET',
		data
	})
}

// 删除解答
export function delOneToOne(id) {
	return ajax({
		url: '/mobile/instructor/center/qaDel/' + id,
		method: 'GET'
	})
}

// 注销账号
export function cancelAccounts() {
	return ajax({
		url: '/mobile/unAccount',
		method: 'GET'
	})
}

// 获取支付参数
export function getPayInfo(data) {
	return ajax({
		url: '/mobile/payment/pay',
		method: 'GET',
		data,
		debug: true
	})
}

// 支付明细
export function getPayList(data) {
	return ajax({
		url: '/mobile/payment/getPageData',
		method: 'GET',
		data
	})
}
